# -*- coding: utf-8; mode: snippet -*-
# name: list all methods in ES6 class
# key: this
# contributor: Chen Bin <chenbin.sh AT gmail>
# --
`(mapconcat (lambda (s) (replace-regexp-in-string "^ *this\.\\([^( ]*\\) *(" "\\1" s)) (delete-dups (string-all-matches "this\.[a-zA-Z][a-zA-Z0-9]* *(" (buffer-substring-no-properties (point-min) (point-max)))) "\n")`